<template>
  <div class="login-wrapper">
    <div class="login-card">
      <div class="login-card__body">
        <div class="login-cover">
          <h1 class="login-title">{{ APP_NAME }}</h1>
          <h4 class="login-subtitle">界面美观组件丰富的中后台解决方案</h4>
        </div>
        <div class="login-body" style="text-align: left">
          <div
              style="font-size: 24px;margin-bottom: 18px;color: #000000eb;font-weight: bold;box-sizing: border-box;">
            用户登录
          </div>
          <LoginForm  />
        </div>
      </div>
    </div>
  </div>
</template>
<script setup lang="ts">
import LoginForm from './components/login-form.vue';
const APP_NAME = import.meta.env.VITE_APP_NAME;
</script>
<style scoped lang="less">
/* 背景 */
.login-wrapper {
  min-height: 100vh;
  box-sizing: border-box;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url('@/assets/images/login-bg.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.login-wrapper .login-card {
  width: 920px;
  max-width: 100%;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .03), 0 1px 6px -1px rgba(0, 0, 0, .02), 0 2px 4px 0 rgba(0, 0, 0, .02);
  color: inherit;
  overflow: visible;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 8px;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.login-wrapper .login-card .login-card__body {
  display: flex;
  padding: 0;
  height: 462px;
  box-sizing: border-box;
}
.login-cover {
  flex: 1;
  padding: 36px 8px;
  box-sizing: border-box;
  background-color: #1681fd;
  background-image: url('@/assets/images/login-img.png');
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: contain;
  text-align: center;
}
.login-title {
  color: #fffffffa;
  font-size: 26px;
  margin: 0 0 6px;
  font-weight: 400;
  letter-spacing: 1.2px;
}
.login-subtitle {
  color: #fffc;
  font-size: 16px;
  margin: 0;
  font-weight: 400;
  letter-spacing: 4px;
}

.login-body {
  width: 400px;
  flex-shrink: 0;
  padding: 32px 48px 0;
  box-sizing: border-box;
}

@media screen  and (max-width: @screen-sm) {
  /* 针对移动端的样式 */
  .login-wrapper {
    padding: 0;
    display: block;
    background: #fff;
  }

  .login-wrapper .login-card {
    width: 100%;
    background: none;
    box-shadow: none;
    border-radius: 0;
  }

  .login-wrapper .login-card .el-card__body {
    display: block;
    height: auto;
  }

  .login-cover {
    display: none;
    //padding: 24px 12px 100px;
    //background-size: auto 100px;
  }

  .login-body {
    width: 100%;
  }
}


</style>